package lab04.Test02;

/**
 * Created by lenovo on 2017/12/14.
 */
public class ThreadTwo implements Runnable {

    @Override
    public void run() {
        while (true) {//每隔2秒输出1234567890
            System.out.println("1234567890");
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}